package lzc.encrypt.encryption;

import it.unisa.dia.gas.jpbc.Element;

import java.io.Serializable;

/**
 * 包装了搜索向量的搜索向量类
 *
 * @author 蓝色的三明治
 * @date 2024/10/14
 */
public class SearchVector {
    private Element[] search_vector;

    public final int length;

    public SearchVector(Element[] search_vector) {
        this.search_vector = search_vector;
        length = search_vector.length;
    }

    public Element getFromSearchVector(int i) {
        return search_vector[i];
    }

    public void setInSearchVector(int i, Element search) {
        this.search_vector[i] = search;
    }
}
